export ARCH=arm
export CROSS_COMPILE=arm-linux-

#KERNELDIR :=/lib/modules/$(shell uname -r)/build
#KERNELDIR :=/home/fengjunhui/kernel/linux-3.14
KERNELDIR :=/home/linux/test/linux-3.14
PWD  :=$(shell pwd)

obj-m +=fsled.o 

all:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
	arm-linux-gcc test.c -o led_test

install:
	cp led_test  *.ko ~/nfs/rootfs/drv/
clean:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) clean
	rm -rf ledtest


